<%--
  Created by IntelliJ IDEA.
  User: xue80
  Date: 2024/12/29
  Time: 20:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<div class="content">
    <form action="${pageContext.request.getContextPath()}/UpdateEmployee" method="post">
        <span class="name">name</span><input type="text" name="name" placeholder="请输入员工名称" value="${employee.name}"><br>
        <span class="idcard">idcard</span><input type="text" name="idcard" placeholder="请输入身份证号" value="${employee.idcard}"><br>
        <span class="gender">gender</span><input type="text" name="gender" placeholder="请输入性别" value="${employee.gender}"><br>
        <span class="phone">phone</span><input type="text" name="phone" placeholder="请输入手机号" value="${employee.phone}"><br>
        <span class="address">address</span><input type="text" name="address" placeholder="请输入地址" value="${employee.address}"><br>
        <span class="hiredate">hiredate</span><input type="text" name="hiredate" placeholder="请输入入职日期" value="${employee.hiredate}"><br>
        <span class="status">status</span><input type="text" name="status" placeholder="请输入状态" value="${employee.status}"><br>
        <%--        隐藏id，用于更新操作(首先需要通过获取id来判断修改哪个员工,因为在每一个员工后面都加上了删除和更改按钮,所以当我点击这一行的删除和修改时会获取本行的id,不需要自己输入了) --%>
        <input type="hidden" name="id" value="${employee.id}">
        <input class="but" type="submit" value="更新">
    </form>
</div>
</body>
</html>
